import { postApi, getApi } from '@/utils/http'

/**
 * 用户修改密码
 * POST /person/changePwd
 */
export const personChangePwd = data => postApi('/person/changePwd', data)

/**
 * 获取当前登录用户信息
 * POST /person/info
 */
export const personInfo = data => postApi('/person/info', data)

/**
 * 获取当前登录用户信息
 * POST /person/updateInfo
 */
export const personUpdateInfo = data => postApi('/person/updateInfo', data)

/**
 * 获取当前登录用户菜单
 * POST /person/menu
 */
export const personMenu = data => postApi('/person/menu', data)

/**
 * 用户登录
 * POST /login
 */
export const login = data => postApi('/login', data)

/**
 * 退出登录
 * GET /logout
 */
export const logout = () => getApi('/logout')
